package com.tgy;

import com.alibaba.dubbo.rpc.*;

/***
 * @ClassName: ProviderFilter
 * @Description:
 * @Auther: 送你一块二向箔
 * @Date: 9:51 2022/5/6
 * @version : V1.0
 */
public class ProviderFilter implements Filter {
    @Override
    public Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcException {
        String hello = RpcContext.getContext().getAttachment("hello");
        System.out.println(hello);
        return invoker.invoke(invocation);
    }
}
